package org.example.admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.admin.mapper.UserMapper;
import org.example.admin.service.UserService;
import org.example.entity.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Resource
    private UserMapper userMapper;

    @Override
    public int updateByuId(Integer uId, Integer newStatus) {
        return userMapper.updateByuId(uId,newStatus);
    }
}
